package com.ruoyi.web.operate.stock.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人才股票对象 stock
 *
 * @author liuyu
 * @date 2021-08-25
 */
public class Stock extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 股票代码
     */
    @Excel(name = "股票代码")
    private String code;

    /**
     * 股票名称
     */
    @Excel(name = "股票名称")
    private String name;

    /**
     * 开盘价
     */
    @Excel(name = "开盘价")
    private BigDecimal openPrice;

    /**
     * 昨日收盘价
     */
    @Excel(name = "昨日收盘价")
    private BigDecimal lastClosePrice;

    /**
     * 最高价
     */
    @Excel(name = "最高价")
    private BigDecimal maxPrice;

    /**
     * 发行人
     */
    @Excel(name = "发行人")
    private String issuer;

    /**
     * 最低价
     */
    @Excel(name = "最低价")
    private BigDecimal minPrice;

    /**
     * 最新价格
     */
    @Excel(name = "最新价格")
    private BigDecimal latestPrice;

    /**
     * 总成交股数
     */
    @Excel(name = "总成交股数")
    private Long volume;

    /**
     * 总成交金额
     */
    @Excel(name = "总成交金额")
    private BigDecimal turnover;

    /**
     * 股票数量
     */
    @Excel(name = "股票数量")
    private Long amount;

    /**
     * 股票数量
     */
    @Excel(name = "股票总数")
    private Long amountSum;


    /**
     * 回购进度
     */
    @Excel(name = "回购进度")
    private Integer repurchaseVerify;

    /**
     * 股票拥有者
     */
    @Excel(name = "股票拥有者")
    private Long owner;

    /**
     * 部门ID
     */
    @Excel(name = "部门ID")
    private Long deptId;

    /**
     * 创建者ID
     */
    @Excel(name = "创建者ID")
    private Long createById;

    /**
     * 更新者ID
     */
    @Excel(name = "更新者ID")
    private Long updateById;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getOpenPrice() {
        return openPrice;
    }

    public void setOpenPrice(BigDecimal openPrice) {
        this.openPrice = openPrice;
    }

    public BigDecimal getLastClosePrice() {
        return lastClosePrice;
    }

    public void setLastClosePrice(BigDecimal lastClosePrice) {
        this.lastClosePrice = lastClosePrice;
    }

    public BigDecimal getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(BigDecimal maxPrice) {
        this.maxPrice = maxPrice;
    }

    public BigDecimal getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(BigDecimal minPrice) {
        this.minPrice = minPrice;
    }

    public BigDecimal getLatestPrice() {
        return latestPrice;
    }

    public void setLatestPrice(BigDecimal latestPrice) {
        this.latestPrice = latestPrice;
    }

    public Long getVolume() {
        return volume;
    }

    public void setVolume(Long volume) {
        this.volume = volume;
    }

    public BigDecimal getTurnover() {
        return turnover;
    }

    public void setTurnover(BigDecimal turnover) {
        this.turnover = turnover;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Long getOwner() {
        return owner;
    }

    public void setOwner(Long owner) {
        this.owner = owner;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getCreateById() {
        return createById;
    }

    public void setCreateById(Long createById) {
        this.createById = createById;
    }

    public Long getUpdateById() {
        return updateById;
    }

    public void setUpdateById(Long updateById) {
        this.updateById = updateById;
    }

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public Long getAmountSum() {
        return amountSum;
    }

    public void setAmountSum(Long amountSum) {
        this.amountSum = amountSum;
    }

    public Integer getRepurchaseVerify() {
        return repurchaseVerify;
    }

    public void setRepurchaseVerify(Integer repurchaseVerify) {
        this.repurchaseVerify = repurchaseVerify;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("name", getName())
                .append("openPrice", getOpenPrice())
                .append("lastClosePrice", getLastClosePrice())
                .append("maxPrice", getMaxPrice())
                .append("minPrice", getMinPrice())
                .append("latestPrice", getLatestPrice())
                .append("volume", getVolume())
                .append("turnover", getTurnover())
                .append("amount", getAmount())
                .append("amountSum", getAmountSum())
                .append("repurchaseVerify", getRepurchaseVerify())
                .append("owner", getOwner())
                .append("deptId", getDeptId())
                .append("createBy", getCreateBy())
                .append("createById", getCreateById())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateById", getUpdateById())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("issuer", getIssuer())
                .toString();
    }
}
